<template>
  <div class="footer bg-fff aic">
    <router-link to="/product" active-class="on" class="flex aic fdc">
      <van-icon name="home-o" size="18" />
      <span class="f12">首页</span>
    </router-link>
    <router-link active-class="on" to="/classify"  class="flex aic fdc">
    <van-icon name="qr" />
      <span class="f12">分类</span>
    </router-link>
    <router-link active-class="on" to="/cart"  class="flex aic fdc">
    <van-icon name="shopping-cart-o" />
      <span class="f12">购物车</span>
    </router-link>
    <router-link active-class="on" to="/my"  class="flex aic fdc">
    <van-icon name="user-circle-o" />
      <span class="f12">我的</span>
    </router-link>
    <router-link active-class="on" to="/demo"  class="flex aic fdc">
      <span class="f12">demo</span>
    </router-link>
  </div>
</template>

<script>
export default {
  data() {
    return {
      tab: "首页",
      msg: "hello"
    };
  },
  created() {
  }
};
</script>

<style lang="less" scoped>
.footer {
  position: fixed;
  bottom: 0;
  height: 50px;
  width: 100%;
  display: flex;
  justify-content: space-around;
  span,
  .van-icon {
    color: #797d82;
  }

  .on {
    span,
    .van-icon {
      color: #c03131;
    }
  }
}
</style>    